package com.itheima.exerciseTest.method01_09.method1;

public class Test {
    public static void main(String[] args) {
        Tiger t = new Tiger();
        t.setAge(2);
        t.setNumOfLegs(4);
        t.eat();

        Rabbit r = new Rabbit();
        r.setAge(1);
        r.setNumOfLegs(4);
        r.eat();
    }
}
